import request from '@/utils/request'

// 查询薪资方案列表
export function listSalaryschemes(query) {
  return request({
    url: '/ldcm/salaryschemes/list',
    method: 'get',
    params: query
  })
}

// 查询薪资方案详细
export function getSalaryschemes(salaryschemeId) {
  return request({
    url: '/ldcm/salaryschemes/' + salaryschemeId,
    method: 'get'
  })
}

// 新增薪资方案
export function addSalaryschemes(data) {
  return request({
    url: '/ldcm/salaryschemes',
    method: 'post',
    data: data
  })
}

// 修改薪资方案
export function updateSalaryschemes(data) {
  return request({
    url: '/ldcm/salaryschemes',
    method: 'put',
    data: data
  })
}

// 删除薪资方案
export function delSalaryschemes(salaryschemeId) {
  return request({
    url: '/ldcm/salaryschemes/' + salaryschemeId,
    method: 'delete'
  })
}
